package zhongche.bean;

import java.util.List;
import java.util.Objects;

public class FunctionCompare {

    private String calculateName;

    private List<ArgumentsType> arguments;

    private FunctionCompare lastFunctionCompare;

    public FunctionCompare getLastFunctionCompare() {
        return lastFunctionCompare;
    }

    public void setLastFunctionCompare(FunctionCompare lastFunctionCompare) {
        this.lastFunctionCompare = lastFunctionCompare;
    }

    public String getCalculateName() {
        return calculateName;
    }

    public void setCalculateName(String calculateName) {
        this.calculateName = calculateName;
    }

    public List<ArgumentsType> getArguments() {
        return arguments;
    }

    public void setArguments(List<ArgumentsType> arguments) {
        this.arguments = arguments;
    }

    @Override
    public String toString() {
        return "FunctionCompare{" +
                "calculateName='" + calculateName + '\'' +
                ", arguments=" + arguments +
                ", lastFunctionCompare=" + lastFunctionCompare +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FunctionCompare that = (FunctionCompare) o;

        return Objects.equals(calculateName, that.calculateName) &&
                Objects.equals(arguments, that.arguments) &&
                Objects.equals(lastFunctionCompare, that.lastFunctionCompare);
    }

    @Override
    public int hashCode() {
        return Objects.hash(calculateName, arguments, lastFunctionCompare);
    }
}
